<template>
  <div>
    <h3>AddItem组件</h3>
    <p>已知库存数:</p>
    <button>库存+1</button>
  </div>
</template>

<script>
export default {
  created () {
    console.log(this.$store)
  }
}
</script>